/**
  * @Author: songgh
  * @Date: 2021-09-20 14:41:08
  * @LastEditors: songgh
  * @LastEditTime: 2021-09-20 15:41:08
  * @Description: typescript & vue3 示例
  */
import {
    SET_LOAD_NUM
} from '../types'

const app = {
    namespaced: true,
    state: {
        loadNum: 0,
        haha: 'haha1'
    },
    mutations: {
        [SET_LOAD_NUM](state, data) {
            state.loadNum = data;
        }
    },
    actions: {
        setLoadNum: ({
            commit
        }, data) => commit(SET_LOAD_NUM, data)
    },
    getters: {
        getLoadNum: state => state.loadNum
    }
};

export default app;